package com.tyd.cams.guide;

import android.content.Intent;
import android.os.Bundle;

import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;

import com.tyd.cams.GuideActivity;
import com.tyd.cams.LoginActivity;
import com.tyd.cams.R;
import com.tyd.cams.StartActivity;


public class GuideCFragment extends Fragment {

    @Override
    public View onCreateView(LayoutInflater inflater,
                             ViewGroup container,
                             Bundle savedInstanceState) {
        return inflater.inflate(R.layout.fragment_guide_c, container, false);
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        Button button = getActivity().findViewById(R.id.touse);
        button.setOnClickListener(v -> {
            /*跳转登陆页面LoginActivity*/
            Intent intent = new Intent();
            intent.setAction("android.intent.action.cams.LOGIN");
            startActivity(intent);
        });
    }
}